import {WeaTools} from 'ecCom';

/*标准自定义报表*/
export const getReportListCondition = params => {
    return WeaTools.callApi('/api/workflow/standCustomReport/getReportListCondition', 'GET', params);
}

export const getReportList = params => {
    return WeaTools.callApi('/api/workflow/standCustomReport/getReportList', 'POST', params);
}
//存为模板
export const saveReportTemplate = params => {
    return WeaTools.callApi('/api/workflow/standCustomReport/saveReportTemplate', 'POST', params);
}
//删除模板
export const delReportTemplate = params => {
    return WeaTools.callApi('/api/workflow/standCustomReport/delReportTemplate', 'POST', params);
}

//报表高级条件接口
export const getReportCondition = params => {
    return WeaTools.callApi('/api/workflow/standCustomReport/getReportCondition', 'POST', params);
}
//报表数据接口
export const getReportData = params => {
    return WeaTools.callApi('/api/workflow/standCustomReport/getReportData', 'POST', params);
}

// 自定义列
export const tableColSet = (params) => {
    return WeaTools.callApi('/api/workflow/standCustomReport/tableColSet', 'POST', params);
};

//导出
export const exportExcel = (params) => {
    return WeaTools.callApi('/api/workflow/standCustomReport/exportExcel', 'GET', params);
}

//导出任务
export const exportTask = (params) => {
    return WeaTools.callApi('/api/workflow/standCustomReport/exportTask', 'GET', params);
}

//导出任务
export const cancelTask = (params) => {
    return WeaTools.callApi('/api/workflow/standCustomReport/cancelTask', 'GET', params);
}